#include<bits/stdc++.h>

using namespace std;

int main() {
    //1 2 3 ..20
    //1 3 5 7 9 ...39
    //20 19 ... 1
    //1 2 4 8... 1024 //f(i)=2^i
    for (int i = 1; i <= 1024; i = i * 2) {
        cout << i << " ";
    }
    return 0;
}
